package com.ww.boot.mybatis.bo;

import cn.hutool.json.JSONUtil;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ww.boot.mybatis.entity.SkuInfringeEntity;
import lombok.Data;

import java.util.List;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2024-04-25 14:19
 */
@Data
public class QinQuanBO {

    @ExcelProperty(value = "牛蛙SKU", index = 0)
    private String sku;
    @ExcelProperty(value = "新系统SKU", index = 1)
    private String productSku;
    @ExcelIgnore
    private List<SkuInfringeEntity> oldList;
    @ExcelIgnore
    private List<SkuInfringeEntity> newList;

    @ExcelProperty(value = "牛蛙系统", index = 2)
    private String oldListStr;
    @ExcelProperty(value = "新系统", index = 3)
    private String newListStr;

    @ExcelProperty(value = "牛蛙系统侵权平台数", index = 4)
    private Integer oldSize;
    @ExcelProperty(value = "新系统侵权平台数", index = 5)
    private Integer newSize;

    public String getOldListStr() {
        return JSONUtil.toJsonStr(oldList);
    }

    public String getNewListStr() {
        return JSONUtil.toJsonStr(newList);
    }

    public Integer getOldSize() {
        return oldList.size();
    }


    public Integer getNewSize() {
        return newList.size();
    }

}
